package cn.csg.iotplatform.module.system.dal.mysql.publicnotice;

import cn.csg.iotplatform.framework.mybatis.core.mapper.BaseMapperX;
import cn.csg.iotplatform.module.system.controller.admin.publicnotice.vo.PublicNoticeListRepVO;
import cn.csg.iotplatform.module.system.controller.admin.publicnotice.vo.PublicNoticeListReqVO;
import cn.csg.iotplatform.module.system.dal.dataobject.publicnotice.PublicNoticeDO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface PublicNoticeMapper extends BaseMapperX<PublicNoticeDO> {

    PublicNoticeListRepVO getReceiveDepts(Long id);

    IPage<PublicNoticeListRepVO> selectPublicNoticeList(IPage<PublicNoticeListRepVO> page, @Param("reqVO") PublicNoticeListReqVO reqVO);

    PublicNoticeListRepVO selectPublicNotice(Long id);

    int updateApprove(PublicNoticeDO publicNoticeDO);
}
